import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    flag2:false,
    personalName:"",
    personalPhone:"",
    personalHeaderImgBig:"",
    personalHeaderImgSmall:"",
    userInfo:{}
  },
  mutations: {
    userInfo(state,payload){
      state.userInfo=payload
    },
    changeLogin(state,payload){
      state.flag2=payload
    },
    changePersonalName(state,payload){
      state.personalName=payload
    },
    changePersonalPhnoe(state,payload){
      state.personalPhone=payload
    },
    changeHeaderImgBig(state,payload){
      state.personalHeaderImgBig=payload

    },
    changeHeaderImgSmall(state,payload){
      state.personalHeaderImgSmall=payload
    }
  },
  actions: {
  },
  modules: {
  }
})
